package com.budayi.gatewayFactory;

import com.budayi.filter.AdminLoginAuthFilter;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @author LIBOFEI
 * @ClassName AdminLoginAuthGatewayFilterFactory
 * @description 后台登录拦截过滤器配置
 * @date 2021/4/29 16:41
 * @Version 1.0
 **/
@Component
public class AdminLoginAuthGatewayFilterFactory extends AbstractGatewayFilterFactory {


    @Override
    public GatewayFilter apply(Object config) {

        return new AdminLoginAuthFilter();
    }
}
